    <div id="breadcrumbs"><?php echo $this->Html->link('Home', array('controller' => 'contents', 'action' => 'view', 'home')); ?> > List Set Times
</div>
<?php
//super admin and admin view
if ($this->Session->read('Auth.User.role_id') == 1 || $this->Session->read('Auth.User.role_id') == 2) {
    ?>
<div class="times index">
	<h2><?php echo __('Set Times', array('controller' => 'Timess', 'action' => 'index')); ?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
            <th><?php echo $this->Paginator->sort('time_from', 'Start Time'); ?></th>
			<th><?php echo $this->Paginator->sort('time_to', 'Finish Time'); ?></th>
			
                        <th>Edit</th>
                        <th>Delete</th>
	</tr>
	<?php foreach ($times as $time): ?>
	<tr>
<td><?php echo h($time['Time']['time_from']); ?>&nbsp;</td>
		<td><?php echo h($time['Time']['time_to']); ?>&nbsp;</td>
		
		<td><?php echo $this->Html->image('edit.png',array('alt'=>'Edit','url'=>array('action' => 'edit', $time['Time']['id']))); ?></td>
		<td><?php echo $this->Form->postLink($this->Html->image('delete.png', array('alt'=>__('Delete'))), array('action' => 'delete', $time['Time']['id']), array('escape' =>false, 'confirm' => __('Are you sure you want to delete ' .$time['Time']['time']. '?'))); ?></td>

	</tr>
<?php endforeach; ?>
	</table>
	 <div class="paging">
        <?php
        echo $this->Paginator->prev('< ' . __('Previous'), array(), null, array('class' => 'prev disabled'));
        echo $this->Paginator->numbers(array('separator' => ''));
        echo $this->Paginator->counter(array('format' => __('Page {:page} of {:pages}')));
        echo $this->Paginator->next(__('Next') . ' >', array(), null, array('class' => 'next disabled'));
        ?>
    </div>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Time'), array('action' => 'add')); ?></li>
	</ul>
</div>
 <?php
}
else { 
    
}
    ?>
    